package com.liliudong.template.common.exception;

import com.liliudong.template.common.constant.ExMessageEnum;
import lombok.Getter;

/**
 * 业务相关异常
 *
 * @author ldli5
 * @classname BizException
 * @date 2024/6/18-14:15
 */
@Getter
public class BizException extends RuntimeException {

	private final ExMessageEnum exMessageEnum;

	public BizException(ExMessageEnum ex) {
		super(ex.getMessage());
		this.exMessageEnum = ex;
	}
}
